import {USER_REGISTER, USER_LOGIN} from '../mutation-types'

const state = {
    user: {}
}

const getters = {
    
}

const actions = {
    register ({commit, state}, user) {
        commit(USER_REGISTER, user)
    }
}

const mutations = {
    [USER_REGISTER] (state, user){
        state.user = user
    }
}

export default {
    namespaced: true,
    state,
    getters,
    actions,
    mutations
}